﻿namespace StrategyDemo
{
    internal class PlayerContext
    {
        private IPlayerStrategy strategy;
        public void SetStrategy(IPlayerStrategy strategy)
        {
            this.strategy = strategy;
        }
        public Task Paly(string fileName)
        {
            return strategy.Play(fileName);
        }
    }
}
